package cn.com.zcode.exam.dao;

import java.util.List;

import cn.com.zcode.core.dao.BaseDao;
import cn.com.zcode.exam.model.Answer;
import cn.com.zcode.exam.model.Examination;
import cn.com.zcode.exam.model.Paper;
import cn.com.zcode.exam.model.Question;
import cn.com.zcode.exam.model.StaticInfo;
import cn.com.zcode.exam.model.Wrong;

public interface ExamDao extends BaseDao {
	 
	public List<Question> listQuestions(String pmp);

	public Paper getPaperById(String pid);

	public  List<Paper> listPapersInfo(String key, String userid) ;

	public Wrong getWrong(String userId,String questionId);

	public List<Question> listWrongQuestions(String type,String userId);

	
	public Paper getPaper(String type, String title, int state, String userid);

	public List<StaticInfo> listStaticInfoByType(String type);

	public List<Question> searchQuestions(String keyword, String userId);

	public Question getQuestion(String id);

	public Question addQuestion(Question question);

	public List<Examination> listExamination(String key, String userid);

	public List<Question> listNewExamQuestions(String pid);

	public List<Question> listLastExamQuestions(String eid);

	public void saveFinishExamination(String eid);

	public Paper addPaper(Paper paper);

	public Answer addAnswer(Answer answer);

	public Examination addExamination(Examination examination);

	public Wrong addWrong(Wrong wrong);

	public void updateQuestion(Question question);


}
